{extend name="public/base" /}
{block name="head"}
    <meta charset="UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

    <link href="__resource_path__/ui-framework/easyui-1.5.2/themes/metro/easyui-c5a176a3d4.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/easyui-1.5.2/themes/icon-77a4ded0c8.css" rel="stylesheet" />

    <link href="__resource_path__/ui-framework/bootstrap/3.0.3/css/bootstrap-a067b6d831.min.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/bootstrap-daterangepicker/css/daterangepicker-886dba62c4.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/font-awesome/css/font-awesome-a81d284b37.css" rel="stylesheet" />

    <link href="__resource_path__/ui-framework/admin-lte/css/AdminLET-7d58b99a7e.css" rel="stylesheet" />
    <link href="__static_path__/css/base-dc47892812.css" rel="stylesheet" />

    <link href="__resource_path__/ui-framework/jason/searchbox/css/searchbox-398327fb84.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/pager/css/pager-f077f5e880.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/status/css/status-5f59ab3856.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/selector/css/selector-23060c280e.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/button/css/button-5ef10c798a.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/orderarrow/css/orderarrow-dcf8eba7d1.css" rel="stylesheet" />

    <link href="__static_path__/css/table-0e491bc98f.css" rel="stylesheet" />
    <link href="__static_path__/css/easyui-ext-372f902530.css" rel="stylesheet" />
    
    <link rel="stylesheet" href="__static_path__/src/css/layui.css">
{/block}
{block name="content"}
        <section class="content">
            <div class="container" style="width: 100%">
                <!-- <div class="row mt10">系统自动发送短信配置：</div> -->
                <!-- <div class="row">
                    <table class="order mt10">
                        <tbody><tr class="header">
                            <td style="width: 100px;">#</td>
                            <td>模板内容</td>
                            <td>模板说明</td>
                            <td>自动发送</td>
                            <td style="width: 100px;">操作</td>
                        </tr>
                        </tbody><tbody id="smsTemp">
                    {foreach name="datasytem" item="vo" key="k" }
                    <tr class="project">
                        <td>{$k+1}</td>
                        <td style="text-align: left">{$vo.content}{$vo.content}</td>
                        <td style="text-align: left">{$vo.name}</td>
                        <td>
                            {eq name="vo['is_auto']" value="1"}
                                是
                            {else/}
                                否
                            {/eq}

                        </td>
                        <td>
                            <a href="javascript:void(0)" data-type="test1" class="demo_duanxin" data-value="{$vo.id}">编辑</a>
                        </td>
                    </tr>
                    {/foreach}

              

                   

                  
                    </tbody>
                    </table>
                </div> -->
                <div class="row mt10">
                    人工发送短信设置：
                </div>
                <div class="row">
                    <table class="order mt10">
                        <tbody><tr class="header">
                            <td style="width: 100px;">#</td>
                            <td>内容简述</td>
                            <td>详细内容</td>
                            <td>状态</td>
                            <td style="width: 100px;">操作</td>
                        </tr>
                        </tbody><tbody id="smsFreq">
                    {foreach name="dataauto" item="vo" key="k" }
                    <tr class="project">
                        <td>{$k+1}</td>
                        <td style="text-align: left">{$vo.name}</td>
                        <td style="text-align: left">{$vo.content}</td>
                        <td>
                        {eq name="vo['is_auto']" value="1"}
                            开启
                        {else/}
                            关闭
                        {/eq}
                        </td>
                        <td>
                            <a href="javascript:void(0)" class="demo_duanxin1" data-value="{$vo.id}">编辑</a>
                        </td>
                    </tr>
                    {/foreach}

                   
                    </tbody>
                    </table>
                </div>
                <div class="row mt10" style="text-align: center">
                    <a class="btn-action demo_duanxin2">添加</a>
                </div>
            </div>
        </section>
{/block}
{block name="script"}
<script src="__resource_path__/libs/jquery/jquery-1-4ed679c998.11.3.min.js"></script>
<script src="__resource_path__/libs/ajaxfileupload-20caa375ef.js"></script>
<script src="__resource_path__/ui-framework/bootstrap/3.0.3/js/bootstrap-7b3098bda9.min.js"></script>
<script src="__resource_path__/ui-framework/bootstrap-daterangepicker/js/moment-zh_cn-3d8809ccd6.js"></script>
<script src="__resource_path__/ui-framework/bootstrap-daterangepicker/js/daterangepicker-bca1a72d19.js"></script>
<script src="__resource_path__/ui-framework/admin-lte/app-bf15eda982.js"></script>
<script src="__static_path__/js/layer/layer.js"></script>
<script type="text/javascript">
    $().ready(function () {
        var url = $('#hdnURL').val();

        $('.sidebar .treeview').each(function (index, item) {
            var btn = $(this).children("a").first();
            var menu = $(this).children(".treeview-menu").first();

            $(this).find('a').each(function (index, item) {
                if ($(item).attr('href') == url) {
                    menu.show();
                    btn.children(".fa-angle-left").first().removeClass("fa-angle-left").addClass("fa-angle-down");
                }
            });
        });
    });


    $('.demo_duanxin').click(function(){
       var id = $(this).attr('data-value');
       layer.open({
           type:2,
           title: '<span style="height: 4rem;background: none" class="lay-title">编辑短信模板</span>',
           area:['600px','600px'],
           content:'edit/id/'+id
       })
   })
    
     $('.demo_duanxin1').click(function(){
       var id = $(this).attr('data-value');
       layer.open({
           type:2,
           title: '<span style="height: 4rem;background: none" class="lay-title">编辑短信模板</span>',
           area:['600px','360px'],
           content:'editmsg/id/'+id
       })
   })

      $('.demo_duanxin2').click(function(){
       layer.open({
           type:2,
           title: '<span style="height: 4rem;background: none" class="lay-title">编辑短信模板</span>',
           area:['600px','360px'],
           content:'{:url("addmsg")}'
       })
   })
</script>
{/block}